/**
 * 
 */
package com.trungsi.mydict.server.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.http.converter.HttpMessageNotWritableException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author trungsi
 *
 */
@Controller
public class HelloWorldController {

	@RequestMapping("/hello")
	public ModelAndView helloworld() {
		String message = "Hello world from Spring MVC";
		return new ModelAndView("hello", "message", message);
	}
}
